package com.bristua.order.controller;
import com.bristua.common.bean.Result;
import com.bristua.common.utils.HandleResultUtil;
import com.bristua.order.biz.QueryOrderPayFlowBiz;
import com.bristua.order.biz.QueryUserOrdersBiz;
import com.bristua.order.model.condition.QueryOrderParams;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/3.
 */
@RestController
@Api(value="查询订单支付流水列表",tags={"查询订单支付流水列表"})
public class QueryOrderPayFlowController {
    @Autowired
    private QueryOrderPayFlowBiz queryOrderPayFlowBiz;
    @ApiOperation(value="查询订单支付流水列表")
    @PostMapping(value="/admin/order/pay/flow/{pageNo}/{pageSize}")
    public Result queryUserOrders(@PathVariable(value="pageNo") int pageNo, @PathVariable(value="pageSize") int pageSize){
        return HandleResultUtil.querySuccessResult(queryOrderPayFlowBiz.queryOrderPayFlow(pageNo,pageSize));
    }
}
